Optimal. Leaf size=135 \[ -\frac {\left (4 a c-3 b^2 d\right ) \tanh ^{-1}\left (\frac {2 a+b \sqrt {\frac {d}{x}}}{2 \sqrt {a} \sqrt {a+b \sqrt {\frac {d}{x}}+\frac {c}{x}}}\right )}{4 a^{5/2}}-\frac {3 b d \sqrt {a+b \sqrt {\frac {d}{x}}+\frac {c}{x}}}{2 a^2 \sqrt {\frac {d}{x}}}+\frac {x \sqrt {a+b \sqrt {\frac {d}{x}}+\frac {c}{x}}}{a} \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.18, antiderivative size = 135, normalized size of antiderivative = 1.00, number of steps used = 6, number of rules used = 6, integrand size = 22, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.273, Rules used = {1969, 1357, 744, 806, 724, 206} \[ -\frac {\left (4 a c-3 b^2 d\right ) \tanh ^{-1}\left (\frac {2 a+b \sqrt {\frac {d}{x}}}{2 \sqrt {a} \sqrt {a+b \sqrt {\frac {d}{x}}+\frac {c}{x}}}\right )}{4 a^{5/2}}-\frac {3 b d \sqrt {a+b \sqrt {\frac {d}{x}}+\frac {c}{x}}}{2 a^2 \sqrt {\frac {d}{x}}}+\frac {x \sqrt {a+b \sqrt {\frac {d}{x}}+\frac {c}{x}}}{a} \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 206
Rule 724
Rule 744
Rule 806
Rule 1357
Rule 1969
Rubi steps
\begin {align*} \int \frac {1}{\sqrt {a+b \sqrt {\frac {d}{x}}+\frac {c}{x}}} \, dx &=-\left (d \operatorname {Subst}\left (\int \frac {1}{x^2 \sqrt {a+b \sqrt {x}+\frac {c x}{d}}} \, dx,x,\frac {d}{x}\right )\right )\\ &=-\left ((2 d) \operatorname {Subst}\left (\int \frac {1}{x^3 \sqrt {a+b x+\frac {c x^2}{d}}} \, dx,x,\sqrt {\frac {d}{x}}\right )\right )\\ &=\frac {\sqrt {a+b \sqrt {\frac {d}{x}}+\frac {c}{x}} x}{a}+\frac {d \operatorname {Subst}\left (\int \frac {\frac {3 b}{2}+\frac {c x}{d}}{x^2 \sqrt {a+b x+\frac {c x^2}{d}}} \, dx,x,\sqrt {\frac {d}{x}}\right )}{a}\\ &=-\frac {3 b d \sqrt {a+b \sqrt {\frac {d}{x}}+\frac {c}{x}}}{2 a^2 \sqrt {\frac {d}{x}}}+\frac {\sqrt {a+b \sqrt {\frac {d}{x}}+\frac {c}{x}} x}{a}+\frac {\left (4 a c-3 b^2 d\right ) \operatorname {Subst}\left (\int \frac {1}{x \sqrt {a+b x+\frac {c x^2}{d}}} \, dx,x,\sqrt {\frac {d}{x}}\right )}{4 a^2}\\ &=-\frac {3 b d \sqrt {a+b \sqrt {\frac {d}{x}}+\frac {c}{x}}}{2 a^2 \sqrt {\frac {d}{x}}}+\frac {\sqrt {a+b \sqrt {\frac {d}{x}}+\frac {c}{x}} x}{a}-\frac {\left (4 a c-3 b^2 d\right ) \operatorname {Subst}\left (\int \frac {1}{4 a-x^2} \, dx,x,\frac {2 a+b \sqrt {\frac {d}{x}}}{\sqrt {a+b \sqrt {\frac {d}{x}}+\frac {c}{x}}}\right )}{2 a^2}\\ &=-\frac {3 b d \sqrt {a+b \sqrt {\frac {d}{x}}+\frac {c}{x}}}{2 a^2 \sqrt {\frac {d}{x}}}+\frac {\sqrt {a+b \sqrt {\frac {d}{x}}+\frac {c}{x}} x}{a}-\frac {\left (4 a c-3 b^2 d\right ) \tanh ^{-1}\left (\frac {2 a+b \sqrt {\frac {d}{x}}}{2 \sqrt {a} \sqrt {a+b \sqrt {\frac {d}{x}}+\frac {c}{x}}}\right )}{4 a^{5/2}}\\ \end {align*}
________________________________________________________________________________________
Mathematica [F] time = 0.38, size = 0, normalized size = 0.00 \[ \int \frac {1}{\sqrt {a+b \sqrt {\frac {d}{x}}+\frac {c}{x}}} \, dx \]
Verification is Not applicable to the result.
[In]
[Out]
________________________________________________________________________________________
fricas [F(-1)] time = 0.00, size = 0, normalized size = 0.00 \[ \text {Timed out} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
giac [A] time = 0.59, size = 218, normalized size = 1.61 \[ -\frac {2 \, \sqrt {a d^{2} x + \sqrt {d x} b d^{2} + c d^{2}} {\left (\frac {3 \, b}{a^{2}} - \frac {2 \, \sqrt {d x}}{a d}\right )} + \frac {{\left (3 \, b^{2} d^{2} - 4 \, a c d\right )} \log \left ({\left | -b d^{2} - 2 \, \sqrt {a d} {\left (\sqrt {a d} \sqrt {d x} - \sqrt {a d^{2} x + \sqrt {d x} b d^{2} + c d^{2}}\right )} \right |}\right )}{\sqrt {a d} a^{2}} - \frac {3 \, b^{2} d^{2} \log \left ({\left | -b d^{2} + 2 \, \sqrt {c d^{2}} \sqrt {a d} \right |}\right ) - 4 \, a c d \log \left ({\left | -b d^{2} + 2 \, \sqrt {c d^{2}} \sqrt {a d} \right |}\right ) + 6 \, \sqrt {c d^{2}} \sqrt {a d} b}{\sqrt {a d} a^{2}}}{4 \, \sqrt {d} \mathrm {sgn}\relax (x)} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maple [A] time = 0.14, size = 213, normalized size = 1.58 \[ -\frac {\sqrt {\frac {a x +\sqrt {\frac {d}{x}}\, b x +c}{x}}\, \left (-3 a \,b^{2} d \ln \left (\frac {2 a \sqrt {x}+\sqrt {\frac {d}{x}}\, b \sqrt {x}+2 \sqrt {a x +\sqrt {\frac {d}{x}}\, b x +c}\, \sqrt {a}}{2 \sqrt {a}}\right )+4 a^{2} c \ln \left (\frac {2 a \sqrt {x}+\sqrt {\frac {d}{x}}\, b \sqrt {x}+2 \sqrt {a x +\sqrt {\frac {d}{x}}\, b x +c}\, \sqrt {a}}{2 \sqrt {a}}\right )-4 \sqrt {a x +\sqrt {\frac {d}{x}}\, b x +c}\, a^{\frac {5}{2}} \sqrt {x}+6 \sqrt {a x +\sqrt {\frac {d}{x}}\, b x +c}\, \sqrt {\frac {d}{x}}\, a^{\frac {3}{2}} b \sqrt {x}\right ) \sqrt {x}}{4 \sqrt {a x +\sqrt {\frac {d}{x}}\, b x +c}\, a^{\frac {7}{2}}} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maxima [F] time = 0.00, size = 0, normalized size = 0.00 \[ \int \frac {1}{\sqrt {b \sqrt {\frac {d}{x}} + a + \frac {c}{x}}}\,{d x} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
mupad [F] time = 0.00, size = -1, normalized size = -0.01 \[ \int \frac {1}{\sqrt {a+\frac {c}{x}+b\,\sqrt {\frac {d}{x}}}} \,d x \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
sympy [F] time = 0.00, size = 0, normalized size = 0.00 \[ \int \frac {1}{\sqrt {a + b \sqrt {\frac {d}{x}} + \frac {c}{x}}}\, dx \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________